import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { ConfigProvider } from 'antd';
import Home from '@/views/client/home/Home';
import Community from './views/client/community/Community';
import CultPop from './views/client/cultPop/CultPop';
import LocZone from './views/client/locZone/LocZone';
import MainLayout from '@/layout/mainLayout/MainLayout';
import zhCN from 'antd/locale/zh_CN';
import Login from './views/auth/login/Login';

function App() {
    return (
        <ConfigProvider locale={zhCN}>
            <Router>
                <Routes>
                    <Route element={<MainLayout />}>
                        <Route path="/" element={<Home />} />
                        <Route path="/cultPop" element={<CultPop />} />
                        <Route path="/locZone" element={<LocZone />} />
                        <Route path="/community" element={<Community />} />
                    </Route>

                    <Route path="/auth/login" element={<Login />} />
                </Routes>
            </Router>
        </ConfigProvider>
    );
}

export default App;
